<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/include/header.jsp"%>
<script type="text/javascript" src="msi/customer/customer.js"></script>
<script type="text/javascript">
$(function() {
	$('#customer').datagrid({
		width : 700,
		url:"searchCustomer.do",
		onDblClickRow:function(rowIndex, rowData) {
			custPage(rowData.custId);
		}
	});
});
</script>
<div class="easyui-layout" fit="true">
	<div region="north" border="false">
		<div class="subtitle">客户管理</div>
	</div>
	<div region="center" border="false">
		<table id="customer" toolbar="#toolbar"  idField="custId" fit="true" singleSelect="true" pagination="true" rownumbers="true">
			<thead>
				<tr>
					<th field="custId" hidden="true">客户ID</th>
					<th field="custName" width="130">客户名称</th>
					<th field="industry" width="80">从事行业</th>
					<th field="fax" width="80">传真</th>
					<th field="phone" width="80">联系电话</th>
					<th field="address" width="120" align="right">地址</th>
					<th field="linkman" width="80" align="right">联系人</th>
					<th field="linkPhone" width="80" align="center">联系人电话</th>
					<th field="mail" width="80" align="center" >邮箱</th>
					<th field="site" width="80" align="center" >网址</th>
					<th field="custState" width="80" align="center" >客户状态</th>
					<th field="createTime" width="80" align="center" >创建时间</th>
				</tr>
			</thead>
		</table>
	</div>
	<div id="toolbar" class="toolbar">
		<table cellpadding="0" cellspacing="0" style="width:100%">
			<tr>
				<td>
					<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="custPage();">新增客户</a>
					<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="openChkOrg();">机构列表</a>
					<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="deleteCust()">删除客户</a>
					<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="">客户资料</a>
					<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="openUser();">客户账号</a>
				</td>
				<td style="text-align:right">
					<input id="q" class="easyui-searchbox" prompt="按名称查询" searcher="normalQuery" style="width:200px"></input>
					<a href="#" class="easyui-linkbutton" plain="true" onclick="">高级查询</a>
				</td>
			</tr>
		</table>
	</div>
</div>
<div id="dialog" class="easyui-dialog" style="width:480px;height:260px;position:relative" closed="true" modal="true"></div>
<div id="chkorg" class="easyui-dialog" style="width:700px;height:500px;position:relative" closed="true" modal="true"></div>
<div id="user" class="easyui-dialog" style="width:700px;height:500px;position:relative" closed="true" modal="true"></div>
<%@ include file="/include/footer.jsp"%>